package com.zilue.payment.gateway.method.remote;

import com.zilue.balance.domain.UserAccount;
import com.zilue.balance.returnresult.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by ZD on 2017/5/25.
 */
@FeignClient("balance")
public interface UserAccountRemote {

    @RequestMapping("/user/getInfo")
    String getInfo(@RequestParam("seqNo") String seqNo, @RequestParam("cardType") Integer cardType);

    @RequestMapping("/user/getUser")
    Result<UserAccount> getUser(@RequestParam("seqNo") String seqNo, @RequestParam("cardType") Integer cardType);
}
